package util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Util {

	/**
	 * 
	 * @return Return the date in the format month.day.year which is used to be a file name
	 */
	 public static String getCurrentTime(){
	    
	        // Create an instance of SimpleDateFormat used for formatting 
	        // the string representation of date (month/day/year)
	        DateFormat df = new SimpleDateFormat("MM.dd.yyyy-HH.mm.ss");
	        
	        // Get the date today using Calendar object.
	        Date today = Calendar.getInstance().getTime();        

	        return df.format(today);
	    }
}
